* {
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    height: 100%;
}

.m {
    width: 800px;
    height: 800px;
    background-image: url(../img/fsw.png);
    background-size: 700px 700px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    margin: 200px auto;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}


.g1 {
    position: absolute;
    top: 70px;
    left: 330px;
    transform-origin: 50% 0;
}

.g2 {
    position: absolute;
    top: 50%;
    left: 20px;
    transform-origin: 50% 0;
}

.mi {
    position: absolute;
    top: 50%;
    right: 20px;
    transform-origin: 50% 0;
}

div:hover {
    transition: 100s;
    transform: rotate(3600deg);
}

div:hover img {
    transform: rotate(-3600deg);
    transition: 100s;
}